package com.ys.enume.wanli;

public class WanliAuthorizedStatusEnum {
	
	public enum AuthorizedStatus {
		AUTHORIZED("已经授权", "AUTHORIZED"),
		NEVER_AUTHORIZED("未授权", "NEVER_AUTHORIZED");
		public String name;
		public String value;

		private AuthorizedStatus(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(String value) {
			for (AuthorizedStatus e : AuthorizedStatus.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
